package com.i72;

import com.i72.governance.annotation.EnableGovernance;
import com.i72.governance.init.YamlResourceFactory;
import com.i72.governance.service.helper.NacosServiceHelper;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.PropertySource;

/**
 * Hello world!
 */
@EnableGovernance
public class App {
    public static void main(String[] args) {

        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext();

        annotationConfigApplicationContext.register(App.class);

        annotationConfigApplicationContext.refresh();

        Object o = annotationConfigApplicationContext.getBean(NacosServiceHelper.class);


        System.out.println("Hello World!");
    }
}
